# -*- coding:utf-8 -*-#
# 作者：bella
# 日期：2021/1/22 9:19

def fun():
    for a in range(101):
        for b in range(101):
            for c in range(101):
                if c%3 == 0:
                    if a+b+c==100 and 5*a+3*b+c//3 ==100:
                        print('可以买：公鸡{}只，母鸡{}只，小鸡{}只'.format(a,b,c))

if __name__ == '__main__':
    fun()

